<?php

require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Controller_Action');
Zend_Loader::loadClass('Lroot_Zend_ExceptionFormatter');

class ErrorController extends Zend_Controller_Action {
	public function errorAction() {

		// The ExpectionFormatter requires access to a couple of protected 
		// items so the must be passed in explicitly. The 3rd param 
		// controls wether or not the stack trace contains interactive source 
		// code. When enabled browser performance is degradded. It will default
		// to false if the 3rd param is not provided
		Lroot_Zend_ExceptionFormatter::display(
			$this->_getParam('error_handler'),
			$this->_helper,
			true
		);
	}

}